/**
 * Created by Administrator on 2017/5/25.
 */
$stateProvider
.state('mimi',{
    url: '/mimi',
    views:{
        mainView: {
            templateUrl:　'./mimi.tpl.html',
            controller: function ($scope) {
                $scope.mimiList = [{_id:'111asdfasdf'},{_id: 'adsfasfdasfd'}];
            }
        }
    }
})
.state('mimiDetail', {
    url: '/mimiDetail/id',
    views: {
        mainView: {
            templateUrl: './mimiDetail.tpl.html',
            controller: function ($stateParams, $scope) {
                var id = $stateParams.id;
                $http.get('/getMimi/'+id)
                    .then(function (res) {
                        
                    })
            }
        }
    }
})
    .state('changzuoDetail', {
        url: '/changzuoDetail/id',
        views: {
            mainView: {
                templateUrl: './mimiDetail.tpl.html',
                controller: function ($stateParams, $scope) {
                    var id = $stateParams.id;
                    $http.get('/getChuangzuo/'+id)
                        .then(function (res) {

                        })
                }
            }
        }
    })